<?php

define('xiecx_version', '0.01a');

class xiecx
{


    protected static $_config;
    protected static $_loader;
    public static $_xiecx_null = NULL;

    public function __construct()
    {
      
        self::initialize();
    }

    private static function initialize()
    {
        /* initialize config */
        load_class('xiecx_config', 'core');
        self::$_config = new xiecx_config();

        /* initialize loader  */
        load_class('xiecx_loader', 'core');
        self::$_loader = new xiecx_loader();
        
    }

    public static function &config()
    {
        return self::$_config;
    }

    public static function &load()
    {
        return self::$_loader;
    }

    public static function show_error($message, $type='general', $class='')
    {
        die('Error type ' . $type . ' in ' . $class . ' <br>' . $message);
    }

}
